// 用户歌单

module.exports = (query, request) => {
  // const data = {
  //   uid: query.uid,
  //   limit: query.limit || 30,
  //   offset: query.offset || 0,
  //   includeVideo: true,
  // }
  // return request('POST', `https://music.163.com/api/user/playlist`, data, {
  //   crypto: 'weapi',
  //   cookie: query.cookie,
  //   proxy: query.proxy,
  //   realIP: query.realIP,
  // })
  return new Promise(function(resolve, reject){
    resolve({
      status: 200, // The Http Response Code
      body: {
        "version": "0",
        "more": false,
        "playlist": [
          { 
            //喜欢的音乐
              "trackCount": 2,
              "coverImgUrl": "https://llh-resources-1321535012.cos.ap-guangzhou.myqcloud.com/FavoritePlaylists.jpg",
              "id": 1,
              "name": "我喜欢的音乐",

          },
          {
            //创建的歌单
              "subscribers": [],
              "subscribed": false,
              "creator": {
                  "nickname": "游客登录", 
              },
              "id": 2,
              "trackCount": 2,
              "coverImgUrl": "https://llh-resources-1321535012.cos.ap-guangzhou.myqcloud.com/CreatedPlaylist.jpg",
              "name": "开心",
            
          },
          {
            //收藏的歌单 
              "creator": {
                  "nickname": "桥本环奈_Fairy",
              },
              "id": 8040446640,
              "trackCount": 2,
              "coverImgUrl": "https://llh-resources-1321535012.cos.ap-guangzhou.myqcloud.com/CollectedPlaylists.jpg",
              "playCount": 3,
              "name": "2023网络爆火流行歌曲推荐(持续更新中)",
            
          }
      ],
       "code": 200
     }, // API Response body
    cookie: []
    });
  })
}
